package weibo.crawler.UO;

import java.util.Date;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class Crawler {
	public static void main(String[] args) {
		RawUserUO a = new RawUserUO();
		a.setUid("1616550431");
		a.setBiFollowersCount(0);
		a.setCity(5);
		a.setCreatedAt(new Date());
		a.setDescription("");
		a.setFollowersCount(1);
		a.setFriendsCount(3);
		a.setGender("f");
		a.setStatusesCount(0);
		        
		Configuration cfg = new Configuration();
		SessionFactory sf = cfg.configure().buildSessionFactory();
		Session session = sf.openSession();
		session.beginTransaction();
		session.save(a);
		session.getTransaction().commit();
		session.close();
		sf.close();
	}
}
